<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>星云行业解决方案平台</title>
  <meta name="renderer" content="webkit" />
  <meta name="format-detection" content="telephone=no,email=no"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"/>
  <meta name="Language" content="zh-CN" />
  <meta name="Copyright" content="cc" />
  <meta name="Designer" content="cc" />
  <meta name="Publisher" content="cc" />
  <meta name="Distribution" content="Global" />
  <meta name="author"  content="cc" />
  <meta name="robots" content="index,follow" />
  <meta name="googlebot" content="index,follow,archive" />
  <link rel="stylesheet" href="./index.css">
</head>
<body>
  <header>
    <div class="logo">
      <img src="./img/nas-logo.png" alt="">
      <h1>星云行业解决方案平台</h1>
      <ul class="ul-menu" >
        <li id="home" class="home" style="">首页</li>
        <li id="button-community" class="li-button button-community">方案社区</li>
        <li id="button-release" class="button-release li-button" >发布方案</li>
      </ul>
    </div>
  </header>
  <div class="banner">
    <!-- <div id="foreground" class="foreground"></div> -->
    <div class="what-is">
      <h2>为了世界和平</h2>
      <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;星云行业解决方案为各行各业提供一个开放的社区，用户发布自身的需求或方案从而形成一个行业解决方案生态社区。。。</p>
    </div>
    <div class="body">
    <!-- <div class="release" id="release" data-type="1">
      <img src="./img/release.png" alt="">
      <div>发布我的融资信息</div>
    </div> -->
   <!--  <div id="information" class="information">
    </div> -->
    <div id="from" class="from">
      <div style="float: left">
        <p>行业选择</p>
        <select class="input" id="industry">
          <option value="IT行业">IT行业</option>
          <option value="建筑行业">建筑行业</option>
          <option value="医疗行业">医疗行业</option>
          <option value="农/林/牧/渔">农/林/牧/渔</option>
          <option value="商业服务">商业服务</option>
          <option value="交通运输">交通运输</option>
          <option value="广告/媒体">广告/媒体</option>
          <option value="金融/银行/保险">金融/银行/保险</option>
          <option value="制造/加工">制造/加工</option>
          <option value="能源">能源</option>
          <option value="服务业">服务业</option>
          <option value="教育/培训">教育/培训</option>
        </select>
      </div>
      
      <div style="float: left;margin-left: 10%;">
      <p>需求关系</p>
      <select class="input" id="release_type">
        <option value="发布请求">发布请求</option>
        <option value="发布方案">发布方案</option>
      </select>
      </div>
      <p id="close-release" class="close-release">close</p>
      <div style="clear: both;">
      </div>
     <!--  <div class="input">
        <input type="text" id="name" placeholder="选择行业">
      </div> -->
      <p>行业详情</p>
      <div class="input">
        <input type="text" id="industry_details" placeholder="请输入行业详情...">
      </div>
      <p>关键字</p>
      <div class="input">
        <input type="text" id="keyword" placeholder="请输入关键字...">
      </div>
      <p>发布人</p>
      <div class="input">
        <input type="text" id="author" placeholder="请输入发布人...">
      </div>
      <p>联系方式</p>
      <div class="input">
        <input type="text" id="contact" placeholder="请输入联系方式...">
      </div>
     
      <p>需求内容/解决方案</p>
      <div class="input">
        <!-- <textarea placeholder="请输入详细方案..."></textarea> -->
        <input type="textarea" id="content" placeholder="请输入详细方案...">
      </div>
     <!--  <p>联系方式(建议填写邮箱地址)</p>
      <div class="input">
        <input type="text" id="mailbox" placeholder="请输入联系方式.建议填写邮箱地址...">
      </div> -->
      
      <div id="submit" class="submit disabled">提交项目</div>
     
    </div>
    <!-- 方案社区 -->
    <div class="community" id="community" style="margin: auto; overflow-y: scroll; "> 
          <table class="change-html" id="change-html">
              <tr class="append-html" id="append-html">
                <td><h3>请求帮助</h3></td>
                <td><h3>解决方案</h3></td>
              </tr>

          </table>  
    </div>
  </div>
   <!-- <footer> -->
   <div class="new_footer"> 
      <div class="page-warp">
        <!-- <h2>联系我们</h2> -->
        <span> QQ: 978585995 </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span>邮箱: 978585995@qq.com</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span><a href="https://incentive.nebulas.io/cn/signup.html?invite=iw5g0">加入星云社区</a></span>
      </div>
    </div>
 <!--  </footer> -->
  </div>
  
 
  <!-- <div class="footer">© 2018 | 星云融资平台</div> -->
  <div id="toast" class="toast"></div>  
  <script src="./js/jquery.js"></script>
  <script src="./js/particleground.js"></script>
  <script src=./js/nebPay.js></script>
  <script src=./js/nebulas.js></script>
  <script src="./js/index.js"></script>
  <script type="text/javascript">
    $(".button-release").click(function() {        
      $(".from").css('display','block');
      $(".community").css('display','none');
      $(".what-is").css('display','none');
    });
    $(".close-release").click(function() {        
      $(".from").css('display','none');
      $(".what-is").css('display','block');
    });
    $(".button-community").click(function() { 
      $(".from").css('display','none');   
      $(".community").css('display','block');
      $(".what-is").css('display','none');
    });
    $(".home").click(function() {        
      $(".from").css('display','none');
      $(".community").css('display','none');
      $(".what-is").css('display','block');
    });
    // $(document).ready(function(){
    //   $(".community").scroll(function() {
    //     // $("span").text(x+=1);
    //   });
    // });
    // 提交新项目
  $(".submit").click(function() { 
    var industry = $('#industry').val();
    var release_type = $('#release_type').val();
    var industry_details = $('#industry_details').val();
    var keyword = $('#keyword').val();
    var author = $('#author').val();
    var contact = $('#contact').val();
    var content = $('#content').val();
    var id = Date.now() +'_'+ ~~(Math.random() * 1e6);
    if (industry && release_type && content && industry_details && keyword && author && contact) {
      openToast('正在提交中请稍等...');
      nebPay.call(dappAddress, "0", "set", JSON.stringify([{
        id: id,
        industry: industry,
        release_type: release_type,
        industry_details: industry_details,
        keyword: keyword,
        author: author,
        contact: contact,
        content:content,
        matchObj:[]
      }]), { 
        listener: function(res){
          console.log(res)
          console.log('txhash--'+res.txhash);
          if (res.txhash) {
            editToast('系统正在尝试拉去信息中......请稍等 并不要操作页面');
            timer = setInterval(function () {
              get('id', id)
            }, 5000)
          } else {
            editToast('信息添加失败,请稍后再试');
            closeToast()
          }
        }
      })
    } else {
      toast('请填写完整信息');
    }
  });
  </script>
</body>
</html>